package com.union.core.sys.dao;

import java.util.List;
import com.union.core.sys.model.SysLogs;

/**
 * DAO接口类: 日志管理
 * filename: SysLogsDao.java
 * project:  CCTR
 * @company Hainan Jowe Technology Ltd
 * @author wangxiuwu
 * @create in 2009-5-21
 * @version 1.0
 */
public interface SysLogsDao {
	/**
	 * 添加日志
	 * @param syslog SysLogs
 	 * 
	 */
	public void addLogs(SysLogs syslog);
	/**
	 * 查询列表(有条件，分页取数据)
	 * @param Level String
	 * @param ParamName String
	 * @param ParamValue String
	 * @param start int
	 * @param PageSize int
 	 * @return List
	 */
	public List<SysLogs> getList(int GUID,String Date, String messages,String opera_person,String opera_orgenization,
			String opera_account,String startDate,String endDate,String ParamName, String ParamValue,String orderBy,int start, int PageSize);
	
	/**
	 * 查询列表记录数
	 * @param Level String
	 * @param ParamName String
	 * @param ParamValue String
	 * @return int
	 */
	public int getListCount(int GUID,String Date, String messages,String opera_person,String opera_orgenization,
			String opera_account,String startDate,String endDate,String ParamName, String ParamValue);
	
	/**
	 * 删除：按ID删除
	 * @param guid int
	 * @return boolean
	 */
	public boolean delete(int guid);

	/**
	 * 删除：删除几天前日志
	 * @param days int
	 * @return boolean
	 */
	public boolean deleteMore(int days);
	
	
}
